package Demo.继承多态;

public class Test {
    public static void main(String[] args) {
        Boy boy = new Boy();
        Dog dog = new Dog();
        Cat cat = new Cat();
        Bird bird = new Bird();
        boy.play(cat);
    }

}